package com.wad.manager.mapper;

import com.wad.entity.system.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wad
 * @date 2023/12/04 9:47
 * @project e-commerce
 **/
@Mapper
public interface SysMenuMapper {
    List<SysMenu> findAll();

    void save(SysMenu sysMenu);

    void update(SysMenu sysMenu);

    void deleteById(@Param("menuId") Long menuId);

    int selectCountById(@Param("menuId") Long menuId);

    List<SysMenu> findMenusByUserId(@Param("userId") Long userId);

    SysMenu seletcParentMenu(@Param("parentId") Long parentId);
}
